import Mock from "mockjs";
export const mockasset = function () {
  let list = [];

  var asset = Mock.mock({
    model: "UserSubSystem.asset",
    "pk|1-100": 1,
    fields: {
      //生成随机的资产总金额
      "asset_amount|100-999999.1-2": 100.1,
      //生成随机的昨日收益
      "yesterday_profit|-10000-10000.1-2": 100.2,
      //生成随机的持有收益
      "holding_profit|-10000-10000.1-2": 100.3,
      //生成随机的累计收益
      "cumulative_profit|-10000-10000.1-2": 100.4,
    },
  });
  list.push(asset);
  return {
    data: JSON.stringify(list),
    flag: true,
  };
};
